﻿namespace CSharpPro.Properties._1014;

public class Student
{
    public string Name;
    public int Age;
    public string StudentId;
    public string Major;
        
    public Student(string name, int age, string studentId, string major)
    {
        Name = name;
        Age = age;
        StudentId = studentId;
        Major = major;
    }
    public void Shou()
    {
        Console.WriteLine($"学生信息:");
        Console.WriteLine($"姓名: {Name}");
        Console.WriteLine($"年龄: {Age}");
        Console.WriteLine($"学号: {StudentId}");
        Console.WriteLine($"专业: {Major}");
    }
}